﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_ProductDetails : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!Page.IsPostBack)
        {
            SanPham sp = new DALSanPham().selectbyid(Request.QueryString["ID"]);
            lblName.Text = sp.Tensp;
            lblValue.Text = sp.Dongia.ToString();
            lblAmount.Text = sp.Soluong.ToString();
            imgProduct.ImageUrl = "../Images/total/" + sp.Hinhsp;
        }

    }
}